package com.XinYun.Library.modules.judge.controller;

import com.XinYun.Library.modules.judge.entity.user;

import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.XinYun.Library.modules.judge.dao.sql;

public class isbannedImpl{
    public  static int Judge(String sid) throws SQLException, IOException {
        /**
         * 执行数据库查询方法
         * 将查询到的结果返回
         */
        ResultSet resultSet = sql.select3(sid);
        user User = new user();
        if (resultSet.next()) {
            User.setIsbanned(resultSet.getInt("isbanned"));
        }
        return User.getIsbanned();
    }
}
